<%@ include file="/other/Header.jsp" %>
<jsp:directive.page import="java.sql.*"/>
<jsp:directive.page import="Connectivity.ConnectionManager"/>
 <%
try
{
String uname=""+(session.getAttribute("uname"));
if(uname.equals(null))
{response.sendRedirect("/Genius/form/general/Login.jsp");}
session.setAttribute("error","Invalid Loginid or Password");


%>
   <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
   "http://www.w3.org/TR/html4/loose.dtd">

   <html>

      <head>
         <meta http-equiv="Content-Type" 
            content="text/html; charset=windows-1256">
         <title>   User Logged Successfully   </title>
      </head>
      
      
      
<body>



<table id=Masters align=left border=1  width=80% >
<tr width=100% height=120><td align="center" colspan=2><img src="<%=basePath%><%=mainimage%>" ><br><%=maindesc%></td></tr>


<%
String querry1="";
querry1="select actual_link_id,actual_link_desc,actual_link_url from actual_link_master where actual_link_id in";
querry1=querry1+"(select actual_link_id from access_control_list where main_link_id="+Activity+" and role_id="+role_id+" ) and status='V' order by order_id";
 prst1=con.prepareStatement(""+querry1);
	    ResultSet rs1=prst1.executeQuery();
	    
	    
	    
	    
	int cnt=0;
	while(rs1.next())
{
 if(cnt%2==0 || cnt==0)
{   out.println("<tr>");%>
	
	<td><a href="<%=(rs1.getString(3))%>"><%=(rs1.getString(2)) %></a></td>
	
	

<%}
else 
{
%>

	<td><a href="<%=(rs1.getString(3))%>">1<%=(rs1.getString(2)) %></a></td>

<%  out.println("</tr>");

}

}%>



      
</table>
<%}
catch(Exception e)
{response.sendRedirect("/Genius/form/general/Login.jsp");}
%> %>
      </body>
	
   </html>